<template>
  <div>
    <div class="detaiPage">
      <div class="headerline">
        <div class="header bannercenter">
          <div class="headtitle clearfix">
            <h1><span class="title">{{ item.bookName }}</span></h1>
          </div>
        </div>
      </div>
      <div class="main">
        <div class="content" v-html="item.content">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getBook } from '@/api/teacher/book/book'

export default {
  name: 'BookDetaiPage',
  dicts: ['school_book_grade'],
  data () {
    return {
      item: null
    }
  },
  created () {
    this.getAttireDetail()
  },
  methods: {
    getAttireDetail () {
      let id = this.$route.query.id
      this.loading = true
      getBook(id).then(response => {
        this.item = response.data
        this.loading = false
      })
    }
  }
}
</script>

